package com.shark.uh.model.query.role;

import com.shark.uh.model.query.BaseQuery;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.*;

@Data
@ToString
public class RoleQuery extends BaseQuery {

    public RoleQuery(String roleName, String createUserId, String status) {
        super();
        this.roleName = roleName;
        this.createUserId = createUserId;
    }

    @NotBlank
    @Size(min = 1, max = 50)
    private String roleName;

    @NotBlank
    @Size(min = 1, max = 50)
    private String createUserId;

}
